<template>
  <div class=''>
    主页
    <el-form>
      <my-channels @aaa="hAaa"></my-channels>
    </el-form>
  </div>
</template>

<script>
import MyChannels from '@/components/MyChannels'
export default {
  name: 'MyComponent',
  props: { },
  data () {
    return {
      channel_id: '' // 这个值，需要从子组件MyChannels中更新过来。
    }
  },
  components: {
    MyChannels
  },
  created () { },
  methods: {
    hAaa (value) {
      console.log('某某定义的aaa发生了，并传来的参数是：', value)
      this.channel_id = value
    }
  }
}
</script>

<style scoped lang='less'></style>
